package com.ruoyi.ring.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 运动对象 az_ring_sport_record
 * 
 * @author liuwp
 * @date 2025-08-07
 */
@Data
public class RingSportRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long ringDeviceId;

    /** 设备SN */
    @Excel(name = "设备SN")
    private String deviceSn;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dailyValue;

    /** 步数 */
    @Excel(name = "步数")
    private Integer steps;

    /** 距离 */
    @Excel(name = "距离")
    private Integer distance;

    /** 卡路里 */
    @Excel(name = "卡路里")
    private Integer calories;

    /** 运行时间 */
    @Excel(name = "运行时间")
    private Integer sportTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ringDeviceId", getRingDeviceId())
            .append("deviceSn", getDeviceSn())
            .append("createTime", getCreateTime())
            .append("steps", getSteps())
            .append("distance", getDistance())
            .append("calories", getCalories())
            .append("sportTime", getSportTime())
            .toString();
    }
}
